package com.chen.gcode;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;

import java.net.URL;


/**
 * Hello world!
 *
 */
public class App extends Application
{
    public static void main( String[] args )
    {

//        System.out.println( "Hello World!" );
//        MainPage mainPage = new MainPage();
        launch(args);
    }


    @Override
    public void start(Stage primaryStage) throws Exception {
        try {


//            Parent root = FXMLLoader.load(getClass().getClassLoader().getResource("main.fxml"));
            Parent root = FXMLLoader.load(getClass().getClassLoader().getResource("vpnlogin.fxml"));
            Scene scene = new Scene(root,400,250);

            primaryStage.setScene(scene);
            primaryStage.setMinWidth(400);
            primaryStage.setMinHeight(250);
            primaryStage.show();

        } catch(Exception e) {
            e.printStackTrace();
        }
    }
}
